//
//  PersistenceData.h
//  YueMi
//
//  Created by Rainbow on 4/27/11.
//  Copyright 2011 iTotemStudio. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Letter.h"

@interface PersistenceData : NSObject {
    
}

+ (PersistenceData *)sharedData;

- (void)addLetter:(Letter *)letter category:(NSString *)category;

- (Letter *)getLetterByName:(NSString *)letterName;

- (NSMutableDictionary *)getSavedLetters;

- (void)syncLetterStatus:(Letter *)letter;

- (BOOL)haveLetter:(NSString *)letterName;

- (NSMutableArray *)getWrongWords;

- (void)syncWrongWords:(NSMutableArray *)wrongWords;

- (NSString *)getUpdateTimestamp;

- (void)setUpdateTimestamp:(NSTimeInterval)timestamp;

- (NSString *)getAdUpdateTimestamp;

- (void)setAdUpdateTimestamp:(NSTimeInterval)timestamp;

- (NSString *)getAdUpdateCount;

- (void)setAdUpdateCount:(NSInteger)count;

- (void)setAdvertisings:(NSArray *)advertisings;

- (NSArray *)getAdvertsings;

- (NSTimeInterval)getTimestampByCategory:(NSString *)category;

@end
